<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script src="${RESOURCE}/eng/include/AC_RunActiveContent.js" type="text/javascript"></script>
<script language=JavaScript>



function printWindow(){



browserVersion = parseInt(navigator.appVersion)



if (browserVersion >= 4) document.print()



}







function include(xUrl,xId) {



  var xmlhttp = false;



  /*@cc_on @*/



  /*@if (@_jscript_version >= 5)







  // JScript gives us Conditional compilation, we can cope with old IE versions.



  // and security blocked creation of the objects.



  try {



    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");



   } catch (e) {



      try {



        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");



      } catch (E) {



        xmlhttp = false;



      }



   }







  /*@end @*/



  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {



    xmlhttp = new XMLHttpRequest();



  }







  xmlhttp.open("GET", xUrl,true);



  xmlhttp.onreadystatechange=function() {



          if (xmlhttp.readyState==4) {



                document.getElementById(xId).innerHTML = xmlhttp.responseText;



          }



  }



  xmlhttp.send(null)



}











function MM_preloadImages() { //v3.0



  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();



    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)



    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}



}






function set(){



	document.form.days.value = "0";



	document.form.days.focus();



	document.form.money.value=""; 



	document.form.fee.value="";



}







function read(){    



	if(document.form.days.value==0){



		set();



		return;



	}



	document.form.func.value = "read";



	document.form.submit();    



}







function save(){    



	if( !isChoose() ){



		alert("Please select the number of days.");



		document.form.days.focus();



		return;



   }



	var day = document.form.days.value;



	var money = document.form.money.value;



	var type = document.form.sType.value;



	var fee = document.form.fee.value;



   



	var RcurrMsg = "<!--SVLT.VAR:MSG-->";



	if(RcurrMsg =="HAVE_RECUR_BONUS_AND_NON_PERSISTENT") 



		RcurrMsg = " <b>You can apply to this service but your monthly free airtime worth 50 Baht will be void.</b> ";







	var msg = "<strong>Jaidee...JaekWan</strong><br><br>You have requested " + day + " day validity period,<br>" + fee + " baht fee will be applied.<br><br>"  + "Please press accept to confirm.<br><br>";



	document.open("/bp3/bin/confirm?lang=E&msg="+msg,"JaideeJaekWan","width=365, height=200");



}







function isSelectBox(checkObject){ 



	//alert("0 " + checkObject.name); 



	if(checkObject.name !=null && checkObject.name=="type"){



		//alert("a");



		if (checkObject.checked) {



			return true;	   



		}



	}else{



		//alert("b");



		for (var i=0; i<checkObject.length; i++) {



			if (checkObject[i].checked) {



				return true;	   



			}



		}



	}



	return false;



}







function isChoose(){



	var x = document.form.days.value;



	if( x == "0"){ return false }



	return true;



}







<!--







function MM_preloadImages() { //v3.0



  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();



    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)



    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}



}











// Declaring required variables



var digits = "0123456789";







// non-digit characters which are allowed in phone numbers



var phoneNumberDelimiters = "()- ";







// characters which are allowed in international phone numbers



// (a leading + is OK)



var validWorldPhoneChars = phoneNumberDelimiters + "+";







// Minimum no of digits in an international phone no.



var minDigitsInIPhoneNumber = 10;







function isInteger(s)



{   var i;



    for (i = 0; i < s.length; i++)



    {   



        // Check that current character is number.



        var c = s.charAt(i);



        if (((c < "0") || (c > "9"))) return false;



    }







    // All characters are numbers.



    return true;



}







function stripCharsInBag(s, bag)



{   var i;



    var returnString = "";







    // Search through string's characters one by one.



    // If character is not in bag, append to returnString.



    for (i = 0; i < s.length; i++)



    {   



        // Check that current character isn't whitespace.



        var c = s.charAt(i);



        if (bag.indexOf(c) == -1) returnString += c;



    }







    return returnString;



}







function checkInternationalPhone(strPhone){



	s = stripCharsInBag(strPhone,validWorldPhoneChars);



	return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);



}







function ValidateForm(){



	var Phone=document.form1.inputUserName;







	document.form1.submit();



 }







function MM_openBrWindow(theURL,winName,features) { //v2.0



  document.open(theURL,winName,features);



}







function alertChgMobileNumb(){



  var format = /^[0-9]{9}$/;



   



  if(format.test(document.form1.inputUserName.value)) { 



			alert("ตั้งแต่วันที่ 1 กันยายน เป็นต้นไป รหัสผู้ใช้ 9 หลัก จะเปลี่ยนเป็น 10 หลัก โดยใส่ 08 แทน 0 ตัวหน้า \nในครั้งต่อไปกรุณาใช้รหัสผู้ใช้ 10 หลักในการใช้บริการผ่านเว็บ.");



	}







	document.form1.submit();



}



//-->



</script> 

</head>
<body>
<div id="header">	
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway"><img src="${RESOURCE}/eng/images/clear.gif" width="1" height="1"><a href="/bp3/bin/DpromptIndex"  class="link2">Web service</a> > <a href="/bp3/bin/Dspc/DpromptWelcome"  class="link2">Profile and Service</a> &gt; Day Increase</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
                        
                        	<table width="650" border="0" cellspacing="0" cellpadding="0">



                                  <!--SVLT.VAR:CONF_TOP-->
                                
                                
                                
                                  <tr> 
                                
                                
                                
                                    <td> <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
                                
                                
                                
                                          <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle07.gif" width="350" height="22"></td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td>&nbsp;</td>
                                
                                
                                
                                          <td class="textnormal">Extend your SIM's validity days here!</td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td>&nbsp;</td>
                                
                                
                                
                                          <td class="textnormal">To see what you should know before using this service&nbsp;<a href="http://www.happy.co.th/en/low/07_jaidee_jaekwan.php" target="_blank"><span class="textnormalred_bold">click here</span></a> 
                                
                                
                                
                                          </td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                      </table></td>
                                
                                
                                
                                  </tr>
                                
                                
                                
                                  <tr> 
                                
                                
                                
                                    <td height="15" align="left"><br>
                                
                                
                                
                                      <form action="/bp3/bin/Dspc/JaideeJaekWan" method="post" name="form" id="form">
                                
                                
                                
                                      <input type="hidden" name="hdConfirmMsg" value="">
                                
                                
                                
                                      <input name="type" type="hidden" value="1">
                                
                                
                                
                                      <input name="money" type="hidden" value="<!--SVLT.VAR:money-->">
                                
                                
                                
                                      <!--SVLT.LOOP:ERROR_BOX-->
                                
                                
                                
                                      <table width="60%"  border="0" align="center" cellpadding="0" cellspacing="0" >
                                
                                
                                
                                        <tr>
                                
                                
                                
                                          <td align="center" valign="middle" class="textrednormal"><!--SVLT.VAR:ERROR_MSG--></td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                      </table>
                                
                                
                                
                                      <!--SVLT.END:ERROR_BOX-->
                                
                                
                                
                                
                                
                                
                                
                                      <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2">
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td width="45%" align="right" class="textnormal_bold">Select the number of days:</td>
                                
                                
                                
                                          <td>
                                
                                
                                
                                            <select name="days" class="textnormal" id="days" onChange="read()">
                                
                                
                                
                                            <option value="0"> ---- choose ---- </option>
                                
                                
                                
                                            <!--SVLT.VAR:daysNo_30-->>30 days<option value="30" <!--SVLT.VAR:daysNo_30-->>30 days</option>
                                
                                
                                
                                            <!--SVLT.VAR:daysNo_90-->>90 days<option value="90" <!--SVLT.VAR:daysNo_90-->>90 days</option>
                                
                                
                                
                                            <!--SVLT.VAR:daysNo_180-->>180 days<option value="180" <!--SVLT.VAR:daysNo_180-->>180 days</option>
                                
                                
                                
                                           </select></td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td align="right" class="textnormal_bold">You have requested:</td>
                                
                                
                                
                                          <td><input name="day" type="text" class="txt_search_c04" size="30" id="textfield" value="<!--SVLT.VAR:day-->" readonly>
                                
                                
                                
                                            <span class="textnormal">days</span> &nbsp; </td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                        <tr> 
                                
                                
                                
                                          <td align="right" class="textnormal_bold">Transaction Fee:</td>
                                
                                
                                
                                          <td><input name="fee" type="text" class="txt_search_c04" size="30"  id="fee" value="<!--SVLT.VAR:fee-->" readonly>
                                
                                
                                
                                            <span class="textnormal"> baht </span>&nbsp; </td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                      </table>
                                
                                
                                
                                      <p>&nbsp;</p> 
                                
                                
                                
                                      <table width="250" border="0" align="center" cellpadding="5" cellspacing="0">
                                
                                
                                
                                        <tr align="center" valign="top"> 
                                
                                
                                
                                          <input name="sType" type="hidden" id="sType" value="<!--SVLT.VAR:sType-->">
                                
                                
                                
                                          <input name="code" type="hidden" id="code2" value="<!--SVLT.VAR:code-->">
                                
                                
                                
                                          <input name="func" type="hidden" id="func">
                                
                                
                                
                                          <td><a href="javascript:save()"><img src="${RESOURCE}/eng/images/14_webservice_submit.gif" width="58" height="23" border="0"></a></td>
                                
                                
                                
                                          <td><a href="/bp3/bin/Dspc/DpromptWelcome"><img src="${RESOURCE}/eng/images/14_webservice_cancel.gif" width="58" height="23" border="0"></a></td>
                                
                                
                                
                                        </tr>
                                
                                
                                
                                      </table> <p>&nbsp;</p>
                                
                                
                                
                                      </form>
                                
                                
                                
                                    </td>
                                
                                
                                
                                  </tr>
                                
                                
                                
                                  <!--SVLT.VAR:CONF_BOTTOM-->
                                
                                
                                
                                </table>
                        
                        </td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
